home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / commandhandler / nsICommandParams.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  12KB  |  304 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsICommandParams.idl
  3.  */
  4.  
  5. #ifndef __gen_nsICommandParams_h__
  6. #define __gen_nsICommandParams_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17.  
  18. /* starting interface:    nsICommandParams */
  19. #define NS_ICOMMANDPARAMS_IID_STR "83f892cf-7ed3-490e-967a-62640f3158e1"
  20.  
  21. #define NS_ICOMMANDPARAMS_IID \
  22.   {0x83f892cf, 0x7ed3, 0x490e, \
  23.     { 0x96, 0x7a, 0x62, 0x64, 0x0f, 0x31, 0x58, 0xe1 }}
  24.  
  25. class NS_NO_VTABLE nsICommandParams : public nsISupports {
  26.  public: 
  27.  
  28.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_ICOMMANDPARAMS_IID)
  29.  
  30.   enum { eNoType = 0 };
  31.  
  32.   enum { eBooleanType = 1 };
  33.  
  34.   enum { eLongType = 2 };
  35.  
  36.   enum { eDoubleType = 3 };
  37.  
  38.   enum { eWStringType = 4 };
  39.  
  40.   enum { eISupportsType = 5 };
  41.  
  42.   enum { eStringType = 6 };
  43.  
  44.   /* short getValueType (in string name); */
  45.   NS_IMETHOD GetValueType(const char *name, PRInt16 *_retval) = 0;
  46.  
  47.   /* boolean getBooleanValue (in string name); */
  48.   NS_IMETHOD GetBooleanValue(const char *name, PRBool *_retval) = 0;
  49.  
  50.   /* long getLongValue (in string name); */
  51.   NS_IMETHOD GetLongValue(const char *name, PRInt32 *_retval) = 0;
  52.  
  53.   /* double getDoubleValue (in string name); */
  54.   NS_IMETHOD GetDoubleValue(const char *name, double *_retval) = 0;
  55.  
  56.   /* AString getStringValue (in string name); */
  57.   NS_IMETHOD GetStringValue(const char *name, nsAString & _retval) = 0;
  58.  
  59.   /* string getCStringValue (in string name); */
  60.   NS_IMETHOD GetCStringValue(const char *name, char **_retval) = 0;
  61.  
  62.   /* nsISupports getISupportsValue (in string name); */
  63.   NS_IMETHOD GetISupportsValue(const char *name, nsISupports **_retval) = 0;
  64.  
  65.   /* void setBooleanValue (in string name, in boolean value); */
  66.   NS_IMETHOD SetBooleanValue(const char *name, PRBool value) = 0;
  67.  
  68.   /* void setLongValue (in string name, in long value); */
  69.   NS_IMETHOD SetLongValue(const char *name, PRInt32 value) = 0;
  70.  
  71.   /* void setDoubleValue (in string name, in double value); */
  72.   NS_IMETHOD SetDoubleValue(const char *name, double value) = 0;
  73.  
  74.   /* void setStringValue (in string name, in AString value); */
  75.   NS_IMETHOD SetStringValue(const char *name, const nsAString & value) = 0;
  76.  
  77.   /* void setCStringValue (in string name, in string value); */
  78.   NS_IMETHOD SetCStringValue(const char *name, const char *value) = 0;
  79.  
  80.   /* void setISupportsValue (in string name, in nsISupports value); */
  81.   NS_IMETHOD SetISupportsValue(const char *name, nsISupports *value) = 0;
  82.  
  83.   /* void removeValue (in string name); */
  84.   NS_IMETHOD RemoveValue(const char *name) = 0;
  85.  
  86.   /* boolean hasMoreElements (); */
  87.   NS_IMETHOD HasMoreElements(PRBool *_retval) = 0;
  88.  
  89.   /* void first (); */
  90.   NS_IMETHOD First(void) = 0;
  91.  
  92.   /**
  93.    * GetNext()
  94.    * 
  95.    * @return string pointer that will be allocated and is up 
  96.    *         to the caller to free
  97.    */
  98.   /* string getNext (); */
  99.   NS_IMETHOD GetNext(char **_retval) = 0;
  100.  
  101. };
  102.  
  103. /* Use this macro when declaring classes that implement this interface. */
  104. #define NS_DECL_NSICOMMANDPARAMS \
  105.   NS_IMETHOD GetValueType(const char *name, PRInt16 *_retval); \
  106.   NS_IMETHOD GetBooleanValue(const char *name, PRBool *_retval); \
  107.   NS_IMETHOD GetLongValue(const char *name, PRInt32 *_retval); \
  108.   NS_IMETHOD GetDoubleValue(const char *name, double *_retval); \
  109.   NS_IMETHOD GetStringValue(const char *name, nsAString & _retval); \
  110.   NS_IMETHOD GetCStringValue(const char *name, char **_retval); \
  111.   NS_IMETHOD GetISupportsValue(const char *name, nsISupports **_retval); \
  112.   NS_IMETHOD SetBooleanValue(const char *name, PRBool value); \
  113.   NS_IMETHOD SetLongValue(const char *name, PRInt32 value); \
  114.   NS_IMETHOD SetDoubleValue(const char *name, double value); \
  115.   NS_IMETHOD SetStringValue(const char *name, const nsAString & value); \
  116.   NS_IMETHOD SetCStringValue(const char *name, const char *value); \
  117.   NS_IMETHOD SetISupportsValue(const char *name, nsISupports *value); \
  118.   NS_IMETHOD RemoveValue(const char *name); \
  119.   NS_IMETHOD HasMoreElements(PRBool *_retval); \
  120.   NS_IMETHOD First(void); \
  121.   NS_IMETHOD GetNext(char **_retval); 
  122.  
  123. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  124. #define NS_FORWARD_NSICOMMANDPARAMS(_to) \
  125.   NS_IMETHOD GetValueType(const char *name, PRInt16 *_retval) { return _to GetValueType(name, _retval); } \
  126.   NS_IMETHOD GetBooleanValue(const char *name, PRBool *_retval) { return _to GetBooleanValue(name, _retval); } \
  127.   NS_IMETHOD GetLongValue(const char *name, PRInt32 *_retval) { return _to GetLongValue(name, _retval); } \
  128.   NS_IMETHOD GetDoubleValue(const char *name, double *_retval) { return _to GetDoubleValue(name, _retval); } \
  129.   NS_IMETHOD GetStringValue(const char *name, nsAString & _retval) { return _to GetStringValue(name, _retval); } \
  130.   NS_IMETHOD GetCStringValue(const char *name, char **_retval) { return _to GetCStringValue(name, _retval); } \
  131.   NS_IMETHOD GetISupportsValue(const char *name, nsISupports **_retval) { return _to GetISupportsValue(name, _retval); } \
  132.   NS_IMETHOD SetBooleanValue(const char *name, PRBool value) { return _to SetBooleanValue(name, value); } \
  133.   NS_IMETHOD SetLongValue(const char *name, PRInt32 value) { return _to SetLongValue(name, value); } \
  134.   NS_IMETHOD SetDoubleValue(const char *name, double value) { return _to SetDoubleValue(name, value); } \
  135.   NS_IMETHOD SetStringValue(const char *name, const nsAString & value) { return _to SetStringValue(name, value); } \
  136.   NS_IMETHOD SetCStringValue(const char *name, const char *value) { return _to SetCStringValue(name, value); } \
  137.   NS_IMETHOD SetISupportsValue(const char *name, nsISupports *value) { return _to SetISupportsValue(name, value); } \
  138.   NS_IMETHOD RemoveValue(const char *name) { return _to RemoveValue(name); } \
  139.   NS_IMETHOD HasMoreElements(PRBool *_retval) { return _to HasMoreElements(_retval); } \
  140.   NS_IMETHOD First(void) { return _to First(); } \
  141.   NS_IMETHOD GetNext(char **_retval) { return _to GetNext(_retval); } 
  142.  
  143. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  144. #define NS_FORWARD_SAFE_NSICOMMANDPARAMS(_to) \
  145.   NS_IMETHOD GetValueType(const char *name, PRInt16 *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetValueType(name, _retval); } \
  146.   NS_IMETHOD GetBooleanValue(const char *name, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBooleanValue(name, _retval); } \
  147.   NS_IMETHOD GetLongValue(const char *name, PRInt32 *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLongValue(name, _retval); } \
  148.   NS_IMETHOD GetDoubleValue(const char *name, double *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDoubleValue(name, _retval); } \
  149.   NS_IMETHOD GetStringValue(const char *name, nsAString & _retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStringValue(name, _retval); } \
  150.   NS_IMETHOD GetCStringValue(const char *name, char **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCStringValue(name, _retval); } \
  151.   NS_IMETHOD GetISupportsValue(const char *name, nsISupports **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetISupportsValue(name, _retval); } \
  152.   NS_IMETHOD SetBooleanValue(const char *name, PRBool value) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBooleanValue(name, value); } \
  153.   NS_IMETHOD SetLongValue(const char *name, PRInt32 value) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetLongValue(name, value); } \
  154.   NS_IMETHOD SetDoubleValue(const char *name, double value) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDoubleValue(name, value); } \
  155.   NS_IMETHOD SetStringValue(const char *name, const nsAString & value) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetStringValue(name, value); } \
  156.   NS_IMETHOD SetCStringValue(const char *name, const char *value) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCStringValue(name, value); } \
  157.   NS_IMETHOD SetISupportsValue(const char *name, nsISupports *value) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetISupportsValue(name, value); } \
  158.   NS_IMETHOD RemoveValue(const char *name) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveValue(name); } \
  159.   NS_IMETHOD HasMoreElements(PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->HasMoreElements(_retval); } \
  160.   NS_IMETHOD First(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->First(); } \
  161.   NS_IMETHOD GetNext(char **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNext(_retval); } 
  162.  
  163. #if 0
  164. /* Use the code below as a template for the implementation class for this interface. */
  165.  
  166. /* Header file */
  167. class nsCommandParams : public nsICommandParams
  168. {
  169. public:
  170.   NS_DECL_ISUPPORTS
  171.   NS_DECL_NSICOMMANDPARAMS
  172.  
  173.   nsCommandParams();
  174.  
  175. private:
  176.   ~nsCommandParams();
  177.  
  178. protected:
  179.   /* additional members */
  180. };
  181.  
  182. /* Implementation file */
  183. NS_IMPL_ISUPPORTS1(nsCommandParams, nsICommandParams)
  184.  
  185. nsCommandParams::nsCommandParams()
  186. {
  187.   /* member initializers and constructor code */
  188. }
  189.  
  190. nsCommandParams::~nsCommandParams()
  191. {
  192.   /* destructor code */
  193. }
  194.  
  195. /* short getValueType (in string name); */
  196. NS_IMETHODIMP nsCommandParams::GetValueType(const char *name, PRInt16 *_retval)
  197. {
  198.     return NS_ERROR_NOT_IMPLEMENTED;
  199. }
  200.  
  201. /* boolean getBooleanValue (in string name); */
  202. NS_IMETHODIMP nsCommandParams::GetBooleanValue(const char *name, PRBool *_retval)
  203. {
  204.     return NS_ERROR_NOT_IMPLEMENTED;
  205. }
  206.  
  207. /* long getLongValue (in string name); */
  208. NS_IMETHODIMP nsCommandParams::GetLongValue(const char *name, PRInt32 *_retval)
  209. {
  210.     return NS_ERROR_NOT_IMPLEMENTED;
  211. }
  212.  
  213. /* double getDoubleValue (in string name); */
  214. NS_IMETHODIMP nsCommandParams::GetDoubleValue(const char *name, double *_retval)
  215. {
  216.     return NS_ERROR_NOT_IMPLEMENTED;
  217. }
  218.  
  219. /* AString getStringValue (in string name); */
  220. NS_IMETHODIMP nsCommandParams::GetStringValue(const char *name, nsAString & _retval)
  221. {
  222.     return NS_ERROR_NOT_IMPLEMENTED;
  223. }
  224.  
  225. /* string getCStringValue (in string name); */
  226. NS_IMETHODIMP nsCommandParams::GetCStringValue(const char *name, char **_retval)
  227. {
  228.     return NS_ERROR_NOT_IMPLEMENTED;
  229. }
  230.  
  231. /* nsISupports getISupportsValue (in string name); */
  232. NS_IMETHODIMP nsCommandParams::GetISupportsValue(const char *name, nsISupports **_retval)
  233. {
  234.     return NS_ERROR_NOT_IMPLEMENTED;
  235. }
  236.  
  237. /* void setBooleanValue (in string name, in boolean value); */
  238. NS_IMETHODIMP nsCommandParams::SetBooleanValue(const char *name, PRBool value)
  239. {
  240.     return NS_ERROR_NOT_IMPLEMENTED;
  241. }
  242.  
  243. /* void setLongValue (in string name, in long value); */
  244. NS_IMETHODIMP nsCommandParams::SetLongValue(const char *name, PRInt32 value)
  245. {
  246.     return NS_ERROR_NOT_IMPLEMENTED;
  247. }
  248.  
  249. /* void setDoubleValue (in string name, in double value); */
  250. NS_IMETHODIMP nsCommandParams::SetDoubleValue(const char *name, double value)
  251. {
  252.     return NS_ERROR_NOT_IMPLEMENTED;
  253. }
  254.  
  255. /* void setStringValue (in string name, in AString value); */
  256. NS_IMETHODIMP nsCommandParams::SetStringValue(const char *name, const nsAString & value)
  257. {
  258.     return NS_ERROR_NOT_IMPLEMENTED;
  259. }
  260.  
  261. /* void setCStringValue (in string name, in string value); */
  262. NS_IMETHODIMP nsCommandParams::SetCStringValue(const char *name, const char *value)
  263. {
  264.     return NS_ERROR_NOT_IMPLEMENTED;
  265. }
  266.  
  267. /* void setISupportsValue (in string name, in nsISupports value); */
  268. NS_IMETHODIMP nsCommandParams::SetISupportsValue(const char *name, nsISupports *value)
  269. {
  270.     return NS_ERROR_NOT_IMPLEMENTED;
  271. }
  272.  
  273. /* void removeValue (in string name); */
  274. NS_IMETHODIMP nsCommandParams::RemoveValue(const char *name)
  275. {
  276.     return NS_ERROR_NOT_IMPLEMENTED;
  277. }
  278.  
  279. /* boolean hasMoreElements (); */
  280. NS_IMETHODIMP nsCommandParams::HasMoreElements(PRBool *_retval)
  281. {
  282.     return NS_ERROR_NOT_IMPLEMENTED;
  283. }
  284.  
  285. /* void first (); */
  286. NS_IMETHODIMP nsCommandParams::First()
  287. {
  288.     return NS_ERROR_NOT_IMPLEMENTED;
  289. }
  290.  
  291. /* string getNext (); */
  292. NS_IMETHODIMP nsCommandParams::GetNext(char **_retval)
  293. {
  294.     return NS_ERROR_NOT_IMPLEMENTED;
  295. }
  296.  
  297. /* End of implementation class template. */
  298. #endif
  299.  
  300. #define NS_COMMAND_PARAMS_CID { 0xf7fa4581, 0x238e, 0x11d5, { 0xa7, 0x3c, 0xab, 0x64, 0xfb, 0x68, 0xf2, 0xbc } }
  301. #define NS_COMMAND_PARAMS_CONTRACTID "@mozilla.org/embedcomp/command-params;1"
  302.  
  303. #endif /* __gen_nsICommandParams_h__ */
  304.